<template>
  <div class="card" :style="{ height: he }">
    <div class="container">
      <el-card class="box-card" shadow="never">
        <div slot="header" class="clearfix">
          <span class="title">{{ title }}</span>
          <el-button style="float: right; padding: 3px 0" type="text">
            <span class="text">当前位置：首页>>{{ title }} {{ text }}</span>
          </el-button>
        </div>
        <div class="item">
          <slot name="CARD">
            <card-2 :cardlist="card2"></card-2>
          </slot>
        </div>
      </el-card>
    </div>
  </div>
</template>

<script>
export default {
  name: 'myCard',
  props: {
    text: {
      type: String,
      defalut: '标题' //默认值
    },
    title: {
      type: String,
      defalut: '标题' //默认值
    },
    card2: {
      type: Array
    },
    he: {
      type: String
    }
  }
}
</script>

<style lang="less" scoped>
.container {
  width: 1200px;
  margin: 0 auto;
}
.text {
  font-size: 12px;
  color: #000;
}

.item {
  margin-bottom: 18px;
}

.el-card {
  width: 984px;
  margin-left: -384px;
}
.title {
  font-size: 18px;
  font-weight: 700;
}
.clearfix {
  height: 40px;
  border-bottom: 2px solid #ccc;
}
</style>
